﻿using System.Web.UI;

[assembly:WebResource("LO1200.Web.UI.Scripts.Timer.js", "text/javascript")]

namespace LO1200.Web.UI
{
    /// <summary>
    /// Provides common registration services for Web controls.
    /// </summary>
    public static class Common
    {
        /// <summary>
        /// Registers common client scripts with the specified <see cref="T:System.Web.UI.Page"/>.
        /// </summary>
        /// <param name="page">The <see cref="T:System.Web.UI.Page"/> to register scripts with.</param>
        public static void RegisterScripts(Page page)
        {
            page.ClientScript.RegisterClientScriptInclude(typeof (Common), "JQuery", "http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js");
            page.ClientScript.RegisterClientScriptInclude(typeof (Common), "AspNetAjax", "http://ajax.microsoft.com/ajax/4.0/1/MicrosoftAjax.debug.js");
            page.ClientScript.RegisterClientScriptResource(typeof(Common), "LO1200.Web.UI.Scripts.Timer.js");
        }
    }
}
